package cn.hairui.blog.repository;

import cn.hairui.blog.mapper.MusicMapper;
import cn.hairui.blog.model.Music;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * <h2>请添加说明
 * </h2>
 * <ol>请添加详细说明
 * </ol>
 *
 * <h2>修改历史
 * </h2>
 * <ol>如有修改，请添加修改历史
 * </ol>
 *
 * </p>
 *
 * @author laoganbu
 * @version V1.0
 * @date 2019/8/1 15:29
 */
@Repository
public class MusicRepository {

    @Autowired
    private MusicMapper musicMapper;

    public List<Music> findByUid(Integer uid) {
        return musicMapper.findByUid(uid);
    }
}
